<!DOCTYPE html>
<html lang="zh-CN">
	<head>
		<meta charset="UTF-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<link href="../../../static/bootstrap.min.css" rel="stylesheet">
		<link href="../../../static/style-teacher.css" rel="stylesheet">
		<title>计算机网络综合实训</title>
	</head>
	<body>
		<div class="container">
			<div class="col-md-12 column">
				<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
					<div class="navbar-header">
						<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar-collapse">
						<span class="sr-only">Toggle navigation</span>
						<span class="icon-bar"></span>
						<span class="icon-bar"></span>
						<span class="icon-bar"></span>
						</button>
						<a class="navbar-brand" href="#">华中科技大学</a>
					</div>
					<div class="collapse navbar-collapse" id="navbar-collapse">
						<ul class="nav navbar-nav">
							{% for class in classes%}
								<li {% if class[0] == aim %} class="active" {% endif %}><a href="/teacher/{{ class[0] }}/show_homework/">{{ class[1] }}</a></li>
							{% endfor %}
							<li class="dropdown">
								<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">学期选择<span class="caret"></span></a>
								<ul class="dropdown-menu">
									{% for semester in semesters %}
										<li><a href="/teacher/{{aim}}/change_semester/{{loop.index0}}" {% if semester == now_semester %} style="color:red" {% endif %}>{{ semester }}</a></li>
									{% endfor %}
								</ul>
							</li>
							<li style="margim-left:50px"><a href="#">{{name}}, 你好</a></li>
						</ul>
					</div>
				</nav>
			</div>
			<div class="container-fluid">
				<div class="row">
					<div class="col-sm-3 col-md-2 sidebar">
						<ul class="nav nav-sidebar">
							<li><a href="/teacher/{{aim}}/show_homework">作业详情</a></li>
							<li><a href="/teacher/{{aim}}/add_homework">添加作业</a></li>
							<li><a href="/teacher/{{aim}}/show_score">查看分数</a></li>
						</ul>
						<ul class="nav nav-sidebar">
							<li><a href="/teacher/{{aim}}/show_discussion">讨论区详情</a></li>
							<li><a href="/teacher/{{aim}}/add_discussion">添加讨论</a></li>
						</ul>
						<ul class="nav nav-sidebar">
							<li><a href="/teacher/{{aim}}/show_ppt">课件列表</a></li>
							<li><a href="/teacher/{{aim}}/add_ppt">添加课件</a></li>
						</ul>
						<ul class="nav nav-sidebar">
							<li><a href="/teacher/{{aim}}/show_students">学生详情</a></li>
							<li class="active"><a href="/teacher/{{aim}}/manage_students">学生账户管理</a></li>
						</ul>
						<ul class="nav nav-sidebar">
							<li><a href="/teacher/{{aim}}/show_notice">公告详情</a></li>
							<li><a href="/teacher/{{aim}}/add_notice">添加公告</a></li>
						</ul>
						<ul class="nav nav-sidebar">
							<li><a href="/teacher/change_password">修改密码</a></li>
							<li><a href="/logout/thr">退出登陆</a></li>
						</ul>
					</div>
				</div>
				<div class="col-md-offset-3 col-md-6">
					{% for message in get_flashed_messages() %}
							<div  class="flash" style="color:red"> {{ message }} </div>
					{% endfor %}
					<div class="col-md-5">
						<h4>1.从excel导入</h4>
						<form action="/teacher/{{aim}}/add_student_from_excel/" method="POST" enctype=multipart/form-data>
							<div class="form-group">
								<input type="file" id="excel" name="excel">
							</div>
							<button type="submit" class="btn btn-primary center-block">提交</button>
						</form>
					</div>
					<div class="col-md-offset-2 col-md-5">
						<h4>3.删除学生</h4>
						<form action="/teacher/{{aim}}/del_student/" method="POST" enctype=multipart/form-data>
							<div class="form-group">
								<label for="ID">学号</label>
								<input type="text" lass="form-control" id="ID" name="ID">
							</div>
							<button type="submit" class="btn btn-primary center-block">提交</button>
						</form>
					</div>
					<div class="col-md-5" style="margin-top: 70px">
						<h4>2.添加单个学生</h4>
						<form action="/teacher/{{aim}}/add_student/" method="POST">
							<div class="form-group">
								<label for="ID">学号</label>
								<input type="text" lass="form-control" id="ID" name="ID">
							</div>
							<div class="form-group">
								<label for="name">姓名</label>
								<input type="text" lass="form-control" id="name" name="name">
							</div>
							<div class="form-group">
								<label for="class">班级</label>
								<input type="text" lass="form-control" id="class" name="class">
							</div>
							<div class="form-group">
								<label for="major">专业</label>
								<input type="text" lass="form-control" id="major" name="major">
							</div>
							<div class="form-group">
								<label for="college">学院</label>
								<input type="text" lass="form-control" id="college" name="college">
							</div>
							<button type="submit" class="btn btn-primary center-block">提交</button>
						</form>
					</div>
					<div class="col-md-offset-2 col-md-5" style="margin-top: 70px">
						<h4>4.修改学生信息</h4>
						<form action="/teacher/{{aim}}/change_student_info/" method="POST">
							<div class="form-group">
								<label for="ID">学号</label>
								<input type="text" lass="form-control" id="ID" name="ID">
							</div>
							<div class="form-group">
								<label for="name">姓名</label>
								<input type="text" lass="form-control" id="name" name="name">
							</div>
							<div class="form-group">
								<label for="class">班级</label>
								<input type="text" lass="form-control" id="class" name="class">
							</div>
							<div class="form-group">
								<label for="major">专业</label>
								<input type="text" lass="form-control" id="major" name="major">
							</div>
							<div class="form-group">
								<label for="college">学院</label>
								<input type="text" lass="form-control" id="college" name="college">
							</div>
							<button type="submit" class="btn btn-primary center-block">提交</button>
						</form>
					</div>
				</div>
			</div>
		</div>
		<script src="../../../static/jquery.min.js"></script>
		<script src="../../../static/bootstrap.min.js"></script>
	</body>
</html>